package org.lds.scheduled.job.admin.business.app.converter;

import org.lds.scheduled.job.admin.business.app.entity.App;
import org.lds.scheduled.job.admin.business.app.model.request.AppBaseDeleteRequest;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
public class AppBaseDeleteRequestToEntityConverter implements Converter<AppBaseDeleteRequest, App> {

    @Override
    public App convert(AppBaseDeleteRequest source) {
        return App.builder()
                .id(source.getId())
                .build();
    }

}


